package com.graduate.back.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.graduate.common.entity.Dic;
import com.graduate.common.entity.Result;
import com.graduate.common.vo.HandleVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author bwzfy
 * @create 2021/5/17
 **/
@Controller
@RequestMapping("/dic")
public class DicController extends BaseController {

    @ResponseBody
    @GetMapping("/list")
    public Result<IPage<Dic>> handleList(@RequestParam(required = false) Map<String, Object> map) {
        Result<IPage<Dic>> result = new Result<>();
        result.setCode(200);
        result.setData(dicService.selectDicPage(map));
        return result;
    }

}
